package vcp.models;

import java.util.*;
import java.util.ArrayList;

import java.util.Observable;

public class OrdersModel extends Observable {

	public void createOccasionalOrder() {
		setChanged();
		notifyObservers("createOccasionalOK");			
	}

	
	public void createSubscriptionOrder() {
		setChanged();
		notifyObservers("createSubscriptionOrderOK");			
	}
	
	
	public void createTemporaryOrder() {
		setChanged();
		notifyObservers("createTemporaryOrderOK");			
	}


	public void cancelOrder() {
		String str ="test";
		setChanged();
		notifyObservers(str);
		str="";
	}
	
	public void trackOrder() {
		List<String> trackList = new ArrayList<String>();
		trackList.add("one");
		trackList.add("two");
		trackList.add("three");		
		setChanged();		
		notifyObservers(trackList);
	}
	

       
}
